import TwoRouter from './../twoRouter/twoRouter';

const Index = () =>
    import ( /* webpackChunkName: 'ImportAppHome' */ '@/views/Index.vue');
const Home = () =>
    import ( /* webpackChunkName: 'ImportAppHome' */ '@/views/home/Home.vue');
const Mine = () =>
    import ( /* webpackChunkName: 'ImportAppHome' */ '@/views/mine/Mine.vue');
const Null = () =>
    import ( /* webpackChunkName: 'ImportAppHome' */ '@/views/home/404.vue');


export default [{
        path: '/',
        redirect: "/index"
    }, {
        path: '/index',
        name: 'index',
        component: Index,
        children: [{
            path: '/index',
            redirect: "/index/home"
        }, {
            path: 'home',
            name: 'home',
            meta: {
                index: 1,
                keepAlive: true,
                leftShow: false
            },
            component: Home,
            children: []
        }, {
            path: 'mine',
            name: 'mine',
            meta: {
                index: 2,
                keepAlive: true,
                leftShow: false
            },
            component: Mine,
            children: []
        }]
    },
    {
        path: '*',
        name: '404',
        meta: {
            index: 3
        },
        component: Null,
    },
    ...TwoRouter
]